{% extends "tcms_base.html" %}
{% load static %}
{% block subtitle %}CaseRun Report{% endblock %}

{% block custom_javascript %}
<script src="{% static 'jquery/dist/jquery.min.js' %}"></script>

<script src="{% static 'js/jsonrpc.js' %}"></script>
<script src="{% static 'js/utils.js' %}"></script>

<script type="text/javascript" src="{% static 'js/report.js' %}"></script>

<script type="text/javascript">
Nitrate.Utils.after_page_load(Nitrate.Report.TestingReport.on_load);
</script>
{% endblock %}

{% block contents %}
<div class="itemSearch">
	<form action="{% url "testing-report" %}" method="get">
	<h2>Testing Report</h2>
		<div class="leftlistinfo">
			<div class="listinfo">
				<div class="title"><label for="id_name">Product&nbsp;:</label></div>
				<div class="listinfo_input">{{ run_form.product }}</div>
			</div>
			<div class="listinfo">
				<div class="title"><label for="build">Build&nbsp;:</label></div>
				<div class="listinfo_input">{{ run_form.build }}</div>
			</div>
			<div class="listinfo">
				<div class="title"><label for="id_name">Execute Date&nbsp;:</label></div>
				<div class="listinfo_input">
					{{ run_form.created_since }}
				</div>
			</div>
			<div class="listinfo">
				<div class="title"></div>
				<div class="listinfo_input">
					{{ run_form.created_before }}
				</div>
			</div>
		</div>
		<div class="rightlistinfo">
			<div class="listinfo">
				<div class="title"><label for="version">Version&nbsp;:</label></div>
				<div class="listinfo_input">{{ run_form.version }}</div>
			</div>
		</div>
		<div class="clear"></div>
		<div class="leftlistinfo">
			<div class="listinfo">
				<div class="title"><label for="id_name">Report Type&nbsp;:</label></div>
			<div class="listinfo_input">{{ run_form.report_type }}</div>
		</div>
	</div>
	<div class="clear"></div>
    {% if errors %}<div>{{ errors }}</div>{% endif %}
	<div class="bottom">
		<input type="submit" class="left_float" value="Generate Report" size="7">
	</div>
	<div class="clear"></div>
	</form>
</div>
{% block report %}{% endblock %}
{% endblock %}
